<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Amaze UI Admin index Examples</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <link rel="stylesheet" href="assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="assets/css/admin.css">
    <link rel="stylesheet" href="assets/css/app.css">
      <link rel="stylesheet" href="assets/css/swiper.min.css">

  <!-- Demo styles -->
  <style>
    .swiper-container {
      position: relative;
      height: 98%;
    }
    .swiper-container {
      background: #000;
      font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
      font-size: 14px;
      color:#000;
      margin: 0;
      padding: 0;
    }
    .swiper-container {
      width: 98%;
      height: 98%;
    }
    .swiper-slide {
      overflow: hidden;
    }
  </style>
 <script type="text/javascript">
    function checkNum(){
        if($('.switch-anim').prop('checked')){
            console.log("选中");
        }else{
            console.log("没选中");
        }
    }
</script>
    <style type="text/css">
    .switch {
            width: 57px;
            height: 28px;
            position: relative;
            border: 1px solid #dfdfdf;
            background-color: #fdfdfd;
            box-shadow: #dfdfdf 0 0 0 0 inset;
            border-radius: 20px;
            background-clip: content-box;
            display: inline-block;
            -webkit-appearance: none;
            user-select: none;
            outline: none;
        }
        .switch:before {
            content: '';
            width: 26px;
            height: 26px;
            position: absolute;
            top: 0;
            left: 0;
            border-radius: 20px;
            background-color: #fff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
        }
        .switch:checked {
            border-color: #64bd63;
            box-shadow: #64bd63 0 0 0 16px inset;
            background-color: #64bd63;
        }
        .switch:checked:before {
            left: 30px;
        }
        .switch.switch-anim {
            transition: border cubic-bezier(0, 0, 0, 1) 0.4s, box-shadow cubic-bezier(0, 0, 0, 1) 0.4s;
        }
        .switch.switch-anim:before {
            transition: left 0.3s;
        }
        .switch.switch-anim:checked {
            box-shadow: #64bd63 0 0 0 16px inset;
            background-color: #64bd63;
            transition: border ease 0.4s, box-shadow ease 0.4s, background-color ease 1.2s;
        }
        .switch.switch-anim:checked:before {
            transition: left 0.3s;
        }
        #intervalButton,#rangMinButton,#rangMaxButton{
        background:#eaeaea;
        } 
        
        .am-modal-btn{
        background:#0080ff;
        }
    </style>
</head>

<body data-type="generalComponents">


    <header class="am-topbar am-topbar-inverse admin-header">
        <div class="am-topbar-brand">
                        <img src="assets/img/logo3.png" alt=""  style="height: 70px;width: 70px"><img src="assets/img/logo2.png"  style="height: 50px;width: 100px" alt="">
        
<!--             <a href="javascript:;" class="tpl-logo">
                <img src="assets/img/logo.png" alt="">
            </a> -->
        </div>
        <div class="am-icon-list tpl-header-nav-hover-ico am-fl am-margin-right">

        </div>

        <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

        <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

            <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
                <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                    <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                        <span class="am-icon-bell-o"></span> 提醒 <span class="am-badge tpl-badge-success am-round">5</span></span>
                    </a>
                    <ul class="am-dropdown-content tpl-dropdown-content">
                        <li class="tpl-dropdown-content-external">
                            <h3>你有 <span class="tpl-color-success">5</span> 条提醒</h3><a href="###">全部</a></li>
                        <li class="tpl-dropdown-list-bdbc"><a href="#" class="tpl-dropdown-list-fl"><span class="am-icon-btn am-icon-plus tpl-dropdown-ico-btn-size tpl-badge-success"></span> 【预览模块】移动端 查看时 手机、电脑框隐藏。</a>
                            <span class="tpl-dropdown-list-fr">3小时前</span>
                        </li>
                        <li class="tpl-dropdown-list-bdbc"><a href="#" class="tpl-dropdown-list-fl"><span class="am-icon-btn am-icon-check tpl-dropdown-ico-btn-size tpl-badge-danger"></span> 移动端，导航条下边距处理</a>
                            <span class="tpl-dropdown-list-fr">15分钟前</span>
                        </li>
                        <li class="tpl-dropdown-list-bdbc"><a href="#" class="tpl-dropdown-list-fl"><span class="am-icon-btn am-icon-bell-o tpl-dropdown-ico-btn-size tpl-badge-warning"></span> 追加统计代码</a>
                            <span class="tpl-dropdown-list-fr">2天前</span>
                        </li>
                    </ul>
                </li>
                <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                    <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                        <span class="am-icon-comment-o"></span> 消息 <span class="am-badge tpl-badge-danger am-round">9</span></span>
                    </a>
                    <ul class="am-dropdown-content tpl-dropdown-content">
                        <li class="tpl-dropdown-content-external">
                            <h3>你有 <span class="tpl-color-danger">9</span> 条新消息</h3><a href="###">全部</a></li>
                        <li>
                            <a href="#" class="tpl-dropdown-content-message">
                                <span class="tpl-dropdown-content-photo">
                      <img src="assets/img/user02.png" alt=""> </span>
                                <span class="tpl-dropdown-content-subject">
                      <span class="tpl-dropdown-content-from"> 禁言小张 </span>
                                <span class="tpl-dropdown-content-time">10分钟前 </span>
                                </span>
                                <span class="tpl-dropdown-content-font"> Amaze UI 的诞生，依托于 GitHub 及其他技术社区上一些优秀的资源；Amaze UI 的成长，则离不开用户的支持。 </span>
                            </a>
                            <a href="#" class="tpl-dropdown-content-message">
                                <span class="tpl-dropdown-content-photo">
                      <img src="assets/img/user03.png" alt=""> </span>
                                <span class="tpl-dropdown-content-subject">
                      <span class="tpl-dropdown-content-from"> Steam </span>
                                <span class="tpl-dropdown-content-time">18分钟前</span>
                                </span>
                                <span class="tpl-dropdown-content-font"> 为了能最准确的传达所描述的问题， 建议你在反馈时附上演示，方便我们理解。 </span>
                            </a>
                        </li>

                    </ul>
                </li>
                <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                    <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                        <span class="am-icon-calendar"></span> 进度 <span class="am-badge tpl-badge-primary am-round">4</span></span>
                    </a>
                    <ul class="am-dropdown-content tpl-dropdown-content">
                        <li class="tpl-dropdown-content-external">
                            <h3>你有 <span class="tpl-color-primary">4</span> 个任务进度</h3><a href="###">全部</a></li>
                        <li>
                            <a href="javascript:;" class="tpl-dropdown-content-progress">
                                <span class="task">
                        <span class="desc">Amaze UI 用户中心 v1.2 </span>
                                <span class="percent">45%</span>
                                </span>
                                <span class="progress">
                        <div class="am-progress tpl-progress am-progress-striped"><div class="am-progress-bar am-progress-bar-success" style="width:45%"></div></div>
                    </span>
                            </a>
                        </li>
                        <li>
                            <a href="javascript:;" class="tpl-dropdown-content-progress">
                                <span class="task">
                        <span class="desc">新闻内容页 </span>
                                <span class="percent">30%</span>
                                </span>
                                <span class="progress">
                       <div class="am-progress tpl-progress am-progress-striped"><div class="am-progress-bar am-progress-bar-secondary" style="width:30%"></div></div>
                    </span>
                            </a>
                        </li>
                        <li>
                            <a href="javascript:;" class="tpl-dropdown-content-progress">
                                <span class="task">
                        <span class="desc">管理中心 </span>
                                <span class="percent">60%</span>
                                </span>
                                <span class="progress">
                        <div class="am-progress tpl-progress am-progress-striped"><div class="am-progress-bar am-progress-bar-warning" style="width:60%"></div></div>
                    </span>
                            </a>
                        </li>

                    </ul>
                </li>
                <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen" class="tpl-header-list-link"><span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>

                <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                    <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                        <span class="tpl-header-list-user-nick">禁言小张</span><span class="tpl-header-list-user-ico"> <img src="assets/img/user01.png"></span>
                    </a>
                    <ul class="am-dropdown-content">
                        <li><a href="#"><span class="am-icon-bell-o"></span> 资料</a></li>
                        <li><a href="#"><span class="am-icon-cog"></span> 设置</a></li>
                        <li><a href="#"><span class="am-icon-power-off"></span> 退出</a></li>
                    </ul>
                </li>
                <li><a href="###" class="tpl-header-list-link"><span class="am-icon-sign-out tpl-header-list-ico-out-size"></span></a></li>
            </ul>
        </div>
    </header>







    <div class="tpl-page-container tpl-page-header-fixed">


      <div class="tpl-left-nav tpl-left-nav-hover">
            <div class="tpl-left-nav-title">
                Amaze UI 列表
            </div>
            <div class="tpl-left-nav-list">
                <ul class="tpl-left-nav-menu">
                    <li class="tpl-left-nav-item">
                        <a href="index.html" class="nav-link">
                            <i class="am-icon-home"></i>
                            <span>首页</span>
                        </a>
                    </li>
                    <li class="tpl-left-nav-item">
                        <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-table"></i>
                            <span>设备管理</span>
                            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right"></i>
                        </a>
                        <ul class="tpl-left-nav-sub-menu">
                            <li>
                                <a href="equ-msg-show.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>设备信息查看</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>


                                    <a href="equ-exc-show.html">
                                        <i class="am-icon-angle-right"></i>
                                        <span>设备异常信息</span>
                                        <i class="tpl-left-nav-content tpl-badge-primary">
               5
             </i>


                                        <a href="equ-video-show.html">
                                            <i class="am-icon-angle-right"></i>
                                            <span>监控视频</span>

                                        </a>
                            </li>
                        </ul>
                    </li>
                    
                    <li class="tpl-left-nav-item">
                        <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-table"></i>
                            <span>猪栏管理</span>
                            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right"></i>
                        </a>
                        <ul class="tpl-left-nav-sub-menu">
                            <li>
                                <a href="table-font-list.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>文字表格</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>

                                <a href="table-images-list.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>图片表格</span>
                                    <i class="tpl-left-nav-content tpl-badge-success">
               18
             </i>

                                    <a href="form-news.html">
                                        <i class="am-icon-angle-right"></i>
                                        <span>消息列表</span>
                                        <i class="tpl-left-nav-content tpl-badge-primary">
               5
             </i>


                                        <a href="form-news-list.html">
                                            <i class="am-icon-angle-right"></i>
                                            <span>文字列表</span>

                                        </a>
                                    <ul class="tpl-left-nav-sub-menu">
                                    	<li>
                                    		<a href="table-font-list.html">
			                                    <i class="am-icon-angle-right"></i>
			                                    <span>文字表格</span>
			                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
			                                </a>
                                    	</li>
                                    </ul>
                            </li>
                        </ul>
                    </li>
                    
                    <li class="tpl-left-nav-item">
                        <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-table"></i>
                            <span>猪只管理</span>
                            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right"></i>
                        </a>
                        <ul class="tpl-left-nav-sub-menu">
                            <li class="tpl-left-nav-item">
                                <a href="table-font-list.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>文字表格</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>
                                

                                <a href="table-images-list.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>图片表格</span>
                                    <i class="tpl-left-nav-content tpl-badge-success">18 </i>
             </a>

                                    <a href="form-news.html">
                                        <i class="am-icon-angle-right"></i>
                                        <span>消息列表</span>
                                        <i class="tpl-left-nav-content tpl-badge-primary">
               5
             </i>
           </a>

                                        <a href="form-news-list.html">
                                            <i class="am-icon-angle-right"></i>
                                            <span>文字列表</span>

                                        </a>
                                    
                            </li>
                        </ul>
                    </li>
                    
                     <li class="tpl-left-nav-item">
                        <a href="javascript:;" class="nav-link tpl-left-nav-link-list active">
                            <i class="am-icon-table"></i>
                            <span>母猪管理</span>
                            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right tpl-left-nav-more-ico-rotate"></i>
                        </a>
                        <ul class="tpl-left-nav-sub-menu" style="display: block;>
                            <li class="tpl-left-nav-item">
                                <a href="sowpei.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>母猪配种管理</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>
                                

                                <a href="sowfen.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>母猪分娩管理</span>
                                    <i class="tpl-left-nav-content tpl-badge-success">18 </i>
             </a>

                                    <a href="sowduan.html">
                                        <i class="am-icon-angle-right"></i>
                                        <span>母猪断奶管理</span>
                                        <i class="tpl-left-nav-content tpl-badge-primary">
               5
             </i>
           </a>

                                      
                                    
                            </li>
                        </ul>
                    </li>
                    
                    
                    
                    
                    <li class="tpl-left-nav-item">
                        <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-table"></i>
                            <span>用户管理</span>
                            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right"></i>
                        </a>
                        <ul class="tpl-left-nav-sub-menu">
                            <li>
                                <a href="table-font-list.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>文字表格</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>

                                <a href="table-images-list.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>图片表格</span>
                                    <i class="tpl-left-nav-content tpl-badge-success">
               18
             </i>

                                    <a href="form-news.html">
                                        <i class="am-icon-angle-right"></i>
                                        <span>消息列表</span>
                                        <i class="tpl-left-nav-content tpl-badge-primary">
               5
             </i>


                                        <a href="form-news-list.html">
                                            <i class="am-icon-angle-right"></i>
                                            <span>文字列表</span>

                                        </a>
                            </li>
                        </ul>
                    </li>
                    
                    

                    <li class="tpl-left-nav-item">
                        <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-table"></i>
                            <span>算法管理</span>
                            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right"></i>
                        </a>
                        <ul class="tpl-left-nav-sub-menu">
                            <li>
                                <a href="table-font-list.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>文字表格</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>

                                <a href="table-images-list.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>图片表格</span>
                                    <i class="tpl-left-nav-content tpl-badge-success">
               18
             </i>

                                    <a href="form-news.html">
                                        <i class="am-icon-angle-right"></i>
                                        <span>消息列表</span>
                                        <i class="tpl-left-nav-content tpl-badge-primary">
               5
             </i>


                                        <a href="form-news-list.html">
                                            <i class="am-icon-angle-right"></i>
                                            <span>文字列表</span>

                                        </a>
                            </li>
                        </ul>
                    </li>

                    <li class="tpl-left-nav-item">
                        <!-- 打开状态 a 标签添加 active 即可   -->
                        <a href="javascript:;" class="nav-link tpl-left-nav-link-list active">
                            <i class="am-icon-wpforms"></i>
                            <span>猪只安全</span>
                            <!-- 列表打开状态的i标签添加 tpl-left-nav-more-ico-rotate 图表即90°旋转  -->
                            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right tpl-left-nav-more-ico-rotate"></i>
                        </a>
                        <!-- 打开状态 添加 display:block-->
                        <ul class="tpl-left-nav-sub-menu" style="display: block;">
                            <li>
                            	<a href="vaccination-setting.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>接种疫苗设置</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>
                                <a href="vaccina-record-manage.html"  class="active">
                                    <i class="am-icon-angle-right"></i>
                                    <span>疫苗记录管理</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>
                                <a href="disease-manage.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>疾病管理</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>
                                                               
                            </li>
                        </ul>
                    </li>
                    <li class="tpl-left-nav-item">
                        <!-- 打开状态 a 标签添加 active 即可   -->
                        <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-wpforms"></i>
                            <span>维护安全管理</span>
                            <!-- 列表打开状态的i标签添加 tpl-left-nav-more-ico-rotate 图表即90°旋转  -->
                            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right tpl-left-nav-more-ico-rotate"></i>
                        </a>
                        <!-- 打开状态 添加 display:block-->
                        <ul class="tpl-left-nav-sub-menu">
                            <li>
                            	<a href="log-manage.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>日志管理</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>
                                <a href="log-analyze.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>日志分析</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>
                                <a href="data-backup-recover.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>数据备份和恢复</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>
                                                               
                            </li>
                        </ul>
                    </li>
                    
                    <li class="tpl-left-nav-item">
                        <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-table"></i>
                            <span>库存管理</span>
                            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right"></i>
                        </a>
                        <ul class="tpl-left-nav-sub-menu">
                            <li>
                                <a href="table-font-list.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>文字表格</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>

                                <a href="table-images-list.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>图片表格</span>
                                    <i class="tpl-left-nav-content tpl-badge-success">
               18
             </i>

                                    <a href="form-news.html">
                                        <i class="am-icon-angle-right"></i>
                                        <span>消息列表</span>
                                        <i class="tpl-left-nav-content tpl-badge-primary">
               5
             </i>


                                        <a href="form-news-list.html">
                                            <i class="am-icon-angle-right"></i>
                                            <span>文字列表</span>

                                        </a>
                            </li>
                        </ul>
                    </li>
                    
                    <li class="tpl-left-nav-item">
                        <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-table"></i>
                            <span>养护结算管理</span>
                            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right"></i>
                        </a>
                        <ul class="tpl-left-nav-sub-menu">
                            <li>
                                <a href="table-font-list.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>文字表格</span>
                                    <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                                </a>

                                <a href="table-images-list.html">
                                    <i class="am-icon-angle-right"></i>
                                    <span>图片表格</span>
                                    <i class="tpl-left-nav-content tpl-badge-success">
               18
             </i>

                                    <a href="form-news.html">
                                        <i class="am-icon-angle-right"></i>
                                        <span>消息列表</span>
                                        <i class="tpl-left-nav-content tpl-badge-primary">
               5
             </i>


                                        <a href="form-news-list.html">
                                            <i class="am-icon-angle-right"></i>
                                            <span>文字列表</span>

                                        </a>
                            </li>
                        </ul>
                    </li>
                    
                </ul>
            </div>
        </div>



        <div class="tpl-content-wrapper">
            
            <div class="tpl-portlet-components">
<!--                 <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span> 列表
                    </div>
                    <div class="tpl-portlet-input tpl-fz-ml">
                        <div class="portlet-input input-small input-inline">
                            <div class="input-icon right">
                                <i class="am-icon-search"></i>
                                <input type="text" class="form-control form-control-solid" placeholder="搜索..."> </div>
                        </div>
                    </div>
                </div> -->
                <div class="tpl-block">
                    <div class="am-g">
<!--                         <div class="am-u-sm-12 am-u-md-6">
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-xs">
                                    <button type="button" class="am-btn am-btn-default am-btn-success"><span class="am-icon-plus"></span> 新增</button>
                                    <button type="button" class="am-btn am-btn-default am-btn-secondary"><span class="am-icon-save"></span> 保存</button>
                                    <button type="button" class="am-btn am-btn-default am-btn-warning"><span class="am-icon-archive"></span> 审核</button>
                                    <button type="button" class="am-btn am-btn-default am-btn-danger"><span class="am-icon-trash-o"></span> 删除</button>
                                </div>
                            </div>
                        </div> -->
                        <div class="am-u-sm-12 am-u-md-8">
                        <div class="am-g">
	                        <div class="am-u-sm-12 am-u-md-4">
	                            <div class="am-form-group">
	                                <select id="pigstyIdSelect" data-am-selected="{btnSize: 'sm'}">
						              <option value="0">所有(猪舍编号)</option>
						              <!-- <option value="option2">IT业界</option>
						              <option value="option3">数码产品</option>
						              <option value="option3">笔记本电脑</option>
						              <option value="option3">平板电脑</option>
						              <option value="option3">只能手机</option>
						              <option value="option3">超极本</option> -->
						            </select>
	                            </div>
	                        </div>
	                        <div class="am-u-sm-12 am-u-md-4">
	                            <div class="am-form-group">
	                                <select id="hogcoteIdSelect" data-am-selected="{btnSize: 'sm'}">
						              <option value="0">所有(猪栏编号)</option>
						              <!-- <option value="option2">IT业界</option>
						              <option value="option3">数码产品</option>
						              <option value="option3">笔记本电脑</option>
						              <option value="option3">平板电脑</option>
						              <option value="option3">只能手机</option>
						              <option value="option3">超极本</option> -->
						            </select>
	                            </div>
	                        </div>
	                        <div class="am-u-sm-12 am-u-md-4">
	                            <div class="am-form-group">
	                                <select id="equIdSelect" data-am-selected="{btnSize: 'sm'}">
						              <option value="0">所有(监控编号)</option>
						              <!-- <option value="option2">IT业界</option>
						              <option value="option3">数码产品</option>
						              <option value="option3">笔记本电脑</option>
						              <option value="option3">平板电脑</option>
						              <option value="option3">只能手机</option>
						              <option value="option3">超极本</option> -->
						            </select>
	                            </div>
	                        </div>
                        </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-4">
                            <div class="am-form-group">
				   			 <div class="">
					     	<div class="am-alert am-alert-danger" id="my-alert" style="display: none">
							  <p>开始日期应小于结束日期！</p>
							</div>
							<div class="am-g">
							  <div class="am-u-sm-6">
							    <button type="button" class="am-btn am-btn-default am-margin-right" id="my-start">开始日期</button><br/><span id="my-startDate"></span>
							  </div>
							  <div class="am-u-sm-6">
							    <button type="button" class="am-btn am-btn-default am-margin-right" id="my-end">结束日期</button><br/><span id="my-endDate"></span>
							  </div>
<!-- 							  <div class="am-u-sm-2">
							    <button id='viewButton' type="button" class="am-btn am-btn-primary btn-loading-example">可视化</button>
							  </div> -->
							</div>
					    </div>
                            </div>
                        </div>
                    </div>
                    <!-- <div class="am-popup" id="my-popup">
					  <div class="am-popup-inner">
					    <div class="am-popup-hd">
					      <h4 class="am-popup-title">可视化</h4>
					      <span data-am-modal-close
					            class="am-close">&times;</span>
					    </div>
					    <div id="dataViewDiv" class="am-popup-bd">
					      
					    </div>
					  </div>
					</div> -->
					<div class="am-popup" id="my-popup">
					  <div class="am-popup-inner">
					    <div class="am-popup-hd">
					      <h4 class="am-popup-title">可视化</h4>
					      <span data-am-modal-close
					          class="am-close">&times;</span>
					    </div>
					    <div class="">
					     	<div class="am-alert am-alert-danger" id="my-alert" style="display: none">
							  <p>开始日期应小于结束日期！</p>
							</div>
							<div class="am-g">
							  <div class="am-u-sm-5">
							    <button type="button" class="am-btn am-btn-default am-margin-right" id="my-start">开始日期</button><span id="my-startDate"></span>
							  </div>
							  <div class="am-u-sm-5">
							    <button type="button" class="am-btn am-btn-default am-margin-right" id="my-end">结束日期</button><span id="my-endDate"></span>
							  </div>
							  <div class="am-u-sm-2">
							    <button id='viewButton' type="button" class="am-btn am-btn-primary btn-loading-example">可视化</button>
							  </div>
							</div>
					    </div>
					    <div style="width:600px;height:20px;">
					    </div>
					    <div style="width: 600px;height:550px;" id="dataViewDiv" class="">
					      
					    </div>
					  </div>
					</div>
<!-- 	<div id='sensorControl' class="am-popup" tabindex="-1">
	<div class="am-popup-inner">
        <div class="am-modal-dialog">
    		<div class="am-modal-hd">传感器控制</div>
    		</div>
		    <font size="6">运行状态:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		   	<br/><font size="6">是否异常处理:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		    <br/><font size="6">采集间隔:</font> <input id='intervalButton' style='font-size:25px' style="width:100px;height:25px;vertical-align:middle" type="number" min="0" max="10" step="1" value="6">
		  	<br/><br/>
		  	<div class="am-modal-footer">
		      <span class="am-modal-btn" data-am-modal-cancel><font size="4" color="white">取消</font></span>
		      <span class="am-modal-btn" data-am-modal-confirm><font size="4" color="white">提交</font></span>
		    </div>
  		</div>
  	</div>
	</div>
	<div id='controlControl' class="am-popup" tabindex="-1">
	<div class="am-popup-inner">
        <div class="am-modal-dialog">
    		<div class="am-modal-hd">环控设备控制</div>
    		</div>
		    <font size="6">运行状态:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		   	<br/><font size="6">是否异常处理:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		    <br/><font size="6">阈值:</font> <input id='rangMinButton' style='font-size:25px' style="width:100px;height:25px;vertical-align:middle" type="number" min="0" max="10" step="1" value="6">
		    <font size="4">---</font> <input id='rangMaxButton' style='font-size:25px' style="width:100px;height:25px;vertical-align:middle" type="number" min="0" max="10" step="1" value="6">
		  	<br/><br/>
		  	<div class="am-modal-footer">
		      <span class="am-modal-btn" data-am-modal-cancel><font size="4" color="white">取消</font></span>
		      <span class="am-modal-btn" data-am-modal-confirm><font size="4" color="white">提交</font></span>
		    </div>
  		</div>
  	</div>
	</div>
	<div id='feedControl' class="am-popup" tabindex="-1">
	<div class="am-popup-inner">
        <div class="am-modal-dialog">
    		<div class="am-modal-hd">饲喂控制</div>
    		</div>
		    <font size="6">运行状态:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		   	<br/><font size="6">是否异常处理:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		  	<br/><br/>
		  	<div class="am-modal-footer">
		      <span class="am-modal-btn" data-am-modal-cancel><font size="4" color="white">取消</font></span>
		      <span class="am-modal-btn" data-am-modal-confirm><font size="4" color="white">提交</font></span>
		    </div>
  		</div>
  	</div>
	</div>
	<div id='monitorControl' class="am-popup" tabindex="-1">
	<div class="am-popup-inner">
        <div class="am-modal-dialog">
    		<div class="am-modal-hd">监控设备控制</div>
    		</div>
		    <font size="6">运行状态:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		   	<br/><font size="6">是否异常处理:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		  	<br/><br/>
		  	<div class="am-modal-footer">
		      <span class="am-modal-btn" data-am-modal-cancel><font size="4" color="white">取消</font></span>
		      <span class="am-modal-btn" data-am-modal-confirm><font size="4" color="white">提交</font></span>
		    </div>
  		</div>
  	</div>
	</div> -->
	<div id='equControl' class="am-modal am-modal-prompt" tabindex="-1">
        <div class="am-modal-dialog" id="equControlDiv">
  		</div>
	</div>
<!-- 	<div id='sensorControl' class="am-modal am-modal-prompt" tabindex="-1">
        <div class="am-modal-dialog">
    		<div class="am-modal-hd">传感器控制</div>
    		</div>
		    <font size="6">运行状态:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		   	<br/><font size="6">是否异常处理:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		    <br/><font size="6">采集间隔:</font> <input id='intervalButton' style='font-size:25px' style="width:100px;height:25px;vertical-align:middle" type="number" min="0" max="10" step="1" value="6">
		  	<br/><br/>
		  	<div class="am-modal-footer">
		      <span class="am-modal-btn" data-am-modal-cancel><font size="4" color="white">取消</font></span>
		      <span class="am-modal-btn" data-am-modal-confirm><font size="4" color="white">提交</font></span>
		    </div>
  		</div>
	</div>
	<div id='controlControl' class="am-modal am-modal-prompt" tabindex="-1">
        <div class="am-modal-dialog">
    		<div class="am-modal-hd">环控设备控制</div>
    		</div>
		    <font size="6">运行状态:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		   	<br/><font size="6">是否异常处理:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		    <br/><font size="6">阈值:</font> <input id='rangMinButton' style='font-size:25px' style="width:100px;height:25px;vertical-align:middle" type="number" min="0" max="10" step="1" value="6">
		    <font size="4">---</font> <input id='rangMaxButton' style='font-size:25px' style="width:100px;height:25px;vertical-align:middle" type="number" min="0" max="10" step="1" value="6">
		  	<br/><br/>
		  	<div class="am-modal-footer">
		      <span class="am-modal-btn" data-am-modal-cancel><font size="4" color="white">取消</font></span>
		      <span class="am-modal-btn" data-am-modal-confirm><font size="4" color="white">提交</font></span>
		    </div>
  		</div>
	</div>
	<div id='feedControl' class="am-modal am-modal-prompt" tabindex="-1">
        <div class="am-modal-dialog">
    		<div class="am-modal-hd">饲喂控制</div>
    		</div>
		    <font size="6">运行状态:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		   	<br/><font size="6">是否异常处理:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		  	<br/><br/>
		  	<div class="am-modal-footer">
		      <span class="am-modal-btn" data-am-modal-cancel><font size="4" color="white">取消</font></span>
		      <span class="am-modal-btn" data-am-modal-confirm><font size="4" color="white">提交</font></span>
		    </div>
  		</div>
	</div>
	<div id='monitorControl' class="am-modal am-modal-prompt" tabindex="-1">
        <div class="am-modal-dialog">
    		<div class="am-modal-hd">监控设备控制</div>
    		</div>
		    <font size="6">运行状态:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		   	<br/><font size="6">是否异常处理:</font><input class="switch switch-anim" onchange="checkNum()" type="checkbox" checked />
		  	<br/><br/>
		  	<div class="am-modal-footer">
		      <span class="am-modal-btn" data-am-modal-cancel><font size="4" color="white">取消</font></span>
		      <span class="am-modal-btn" data-am-modal-confirm><font size="4" color="white">提交</font></span>
		    </div>
  		</div>
	</div> -->
	
					 
                    <div class="am-g">
                        <div class="am-u-sm-12" id="videoDiv">
                            <div  style="height:500px" class="swiper-container">
							    <div class="swiper-wrapper">
							      <!-- <div class="swiper-slide">
							        <div class="swiper-zoom-container">
							          <img src="http://lorempixel.com/800/800/sports/1/">
							        </div>
							      </div>
							      <div class="swiper-slide">
							        <div class="swiper-zoom-container">
							          <img src="http://lorempixel.com/800/400/sports/2/">
							        </div>
							      </div>
							      <div class="swiper-slide">
							        <div class="swiper-zoom-container">
							          <img src="http://lorempixel.com/400/800/sports/3/">
							        </div>
							      </div> -->
							    </div>
							    <div class="swiper-pagination swiper-pagination-white"></div>
							    <div class="swiper-button-prev"></div>
							    <div class="swiper-button-next"></div>
							  </div>
                        </div>

                    </div>
                </div>
                <div class="tpl-alert"></div>
            </div>

        </div>

    </div>
<script src="assets/js/swiper.min.js"></script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/app.js"></script>
<script src="assets/js/echarts.min.js"></script>
<script type="text/javascript">
var swiper = new Swiper('.swiper-container', {
    zoom: true,
    pagination: {
      el: '.swiper-pagination',
    },
    navigation: {
      nextEl: '.swiper-button-next',
      prevEl: '.swiper-button-prev',
    },
  });
var pageIndex = 1;
var sensorIds = new Array();
var sensorNames;
var startTime;
var endTime;
$(document).ready(function(){
	
 	$("#equTypeSelect").empty();
 	/* $("#equNameSelect option:not(:first)").remove(); */
    endTime = new Date();
    startTime = new Date();
    startTime.setDate(endTime.getDate()-7);

    $("#my-startDate").text(startTime.getFullYear()+"-"+(startTime.getMonth()+1)+"-"+startTime.getDate());
    $("#my-endDate").text(endTime.getFullYear()+"-"+(endTime.getMonth()+1)+"-"+endTime.getDate());
    console.log(startTime);
    console.log(endTime);
 	var jsonConditionObj = {
			"pigstyId":"",
			"hogcoteId":"",
			"equId":"",
			"startTime":startTime,
			"endTime":endTime
	}
	equMsgShow(JSON.stringify(jsonConditionObj),"pigstyIdSelect");  
});
var pathName=window.location.pathname;
var projectName=pathName.substring(0,pathName.substr(1).indexOf('/')+1);
function equMsgShow(condition, select) {
	$.ajax({
		url:projectName+"/equ/equVideoShow.do",
		type:"post",
		contentType:'application/json;charset=utf-8',
        data: condition,
		success: function(result){
        	var videoConditionList = result.extend.videoConditionList;
        	var equVideoList = result.extend.equVideoList;
			switch(select){
			case "pigstyIdSelect":
				$.each(videoConditionList.pigstyIdList,function(index,pigstyId){
	        		var option = $("#pigstyIdSelect").append("<option value='"+pigstyId+"'>"+pigstyId+"</option>");
				});
				break;
			case "hogcoteIdSelect":
				$.each(videoConditionList.hogcoteIdList,function(index,hogcoteId){
	        		var option = $("#hogcoteIdSelect").append("<option value='"+hogcoteId+"'>"+hogcoteId+"</option>");
				});
				break;
			case "equIdSelect":
				$.each(videoConditionList.equIdList,function(index,equId){
	        		var option = $("#equIdSelect").append("<option value='"+equId+"'>"+equId+"</option>");
				});
				break;
			default:break;
			}
			//$(".swiper-container").remove();
			//$("#videoDiv").append("<div  style='height:500px' class='swiper-container'><div class='swiper-wrapper'></div></div>");
			//$(".swiper-container").empty();
			//$(".swiper-container").append("<div class='swiper-wrapper'></div>");
			$(".swiper-wrapper").empty();
			$(".swiper-wrapper div[divFlag=1]").remove();
			console.log("equVideoList.length::"+equVideoList.length);
			$.each(equVideoList,function(index,equVideo){
				$(".swiper-wrapper").append("<div divFlag=1 class='swiper-slide'><div class='swiper-zoom-container'><img src='"+equVideo.vedioPath+"'></div>");
        	});
			//$(".swiper-wrapper").append("<div class='swiper-pagination swiper-pagination-white'></div><div class='swiper-button-prev'></div><div class='swiper-button-next'></div>");
		}
	});
}

$("#pigstyIdSelect").change(function(){
	if($(this).children('option:selected').val() == "" || $.trim($(this).children('option:selected').val()).length == 0){
	    return false;
	}
    $("#hogcoteIdSelect option:not(:first)").remove();
    $("#equIdSelect option:not(:first)").remove();
    var pigstyId = $(this).children('option:selected').val()
    if(pigstyId == "0"){
    	pigstyId = 0;
    }
	var jsonConditionObj = {
			"pigstyId":pigstyId,
			"hogcoteId":"",
			"equId":"",
			"startTime":startTime,
			"endTime":endTime
	}
	equMsgShow(JSON.stringify(jsonConditionObj),"hogcoteIdSelect");
});

$("#hogcoteIdSelect").change(function(){
	if($(this).children('option:selected').val() == "" || $.trim($(this).children('option:selected').val()).length == 0){
	    return false;
	}
    $("#equIdSelect option:not(:first)").remove();
    var hogcoteId = $(this).children('option:selected').val();
	if(hogcoteId == "0"){
		equName = 0;
	} 
    var jsonConditionObj = {
			"pigstyId":$("#pigstyIdSelect").val(),
			"hogcoteId":hogcoteId,
			"equId":"",
			"startTime":startTime,
			"endTime":endTime
	}
	equMsgShow(JSON.stringify(jsonConditionObj),"equIdSelect");
});

$("#equId").change(function(){
	if($(this).children('option:selected').val() == "" || $.trim($(this).children('option:selected').val()).length == 0){
	    return false;
	}
    var pigstyId = $(this).children('option:selected').val();
	if(pigstyId == "0"){
		pigstyId = 0;
	}
	var jsonConditionObj = {
			"pigstyId":$("#pigstyIdSelect").val(),
			"hogcoteId":hogcoteId,
			"equId":pigstyId,
			"startTime":startTime,
			"endTime":endTime
	}
	equMsgShow(JSON.stringify(jsonConditionObj),"");
});
/* $("#hogcoteIdSelect").change(function(){
	if($(this).children('option:selected').val() == "" || $.trim($(this).children('option:selected').val()).length == 0){
	    return false;
	}
    // 先清空第二个
    var hogcoteId = $(this).children('option:selected').val();
	if(hogcoteId == "allHogcoteId"){
		hogcoteId = "";
	}
	var jsonConditionObj = {
		"equType": $("#equTypeSelect").val(),
		"equName":$("#equNameSelect").val(),
		"pigstyId":$("#pigstyIdSelect").val(),
		"hogcoteId":hogcoteId,
 		"pageIndex": 1,
 		"startTime":startTime,
 		"endTime":endTime
	}
	equMsgShow(JSON.stringify(jsonConditionObj),"");
}); */

$(function() {
   var $alert = $('#my-alert');
   $('#my-start').datepicker().
     on('changeDate.datepicker.amui', function(event) {
       if (event.date.valueOf() > endTime.valueOf()) {
         $alert.find('p').text('开始日期应小于结束日期！').end().show();
       } else {
	         $alert.hide();
	         startTime = new Date(event.date);
	         $('#my-startDate').text($('#my-start').data('date'));
	         var pigstyId = $("#pigstyIdSelect").val();
	         var hogcoteId = $("#hogcoteIdSelect").val();
	         var equId = $("#equIdSelect").val();
	     	 if(pigstyId == "0"){
	     		pigstyId = 0;
	     	 } 
	     	 if(hogcoteId == "0"){
	     		hogcoteId = 0;
	     	 } 
	     	 if(equId == "0"){
	     		equId = 0;
	     	 } 
	         var jsonConditionObj = {
	     			"pigstyId":$("#pigstyIdSelect").val(),
	     			"hogcoteId":hogcoteId,
	     			"equId":equId,
	     			"startTime":startTime,
	     			"endTime":endTime
	     	}
	     	equMsgShow(JSON.stringify(jsonConditionObj),"");
	        }
        $(this).datepicker('close');
      });

   $('#my-end').datepicker().
     on('changeDate.datepicker.amui', function(event) {
       if (event.date.valueOf() < startTime.valueOf()) {
         $alert.find('p').text('结束日期应大于开始日期！').end().show();
       } else {
         $alert.hide();
         endTime = new Date(event.date);
         $('#my-endDate').text($('#my-end').data('date'));
         var pigstyId = $("#pigstyIdSelect").val();
         var hogcoteId = $("#hogcoteIdSelect").val();
         var equId = $("#equIdSelect").val();
     	 if(pigstyId == "0"){
     		pigstyId = 0;
     	 } 
     	 if(hogcoteId == "0"){
     		hogcoteId = 0;
     	 } 
     	 if(equId == "0"){
     		equId = 0;
     	 } 
         var jsonConditionObj = {
     			"pigstyId":$("#pigstyIdSelect").val(),
     			"hogcoteId":hogcoteId,
     			"equId":equId,
     			"startTime":startTime,
     			"endTime":endTime
     	}
     	equMsgShow(JSON.stringify(jsonConditionObj),"");
       }
       $(this).datepicker('close');
     });
 });
$('.btn-loading-example').click(function () {
	  var $btn = $(this)
	  $btn.button('loading');
	});
</script>
</body>

</html>